<div class="modal-header">
  <h1 class="m-n font-thin h3">上传头像</h1>
</div>
<div class="modal-body" >
  <div class="m-b">
    选择照片
    <input type="file" accept="image/*" onchange="angular.element(this).scope().handleFileSelect(event)" />
  </div>
  <div class="hbox hbox-auto-xs">
    <div class="col-lg-8">
      <div class="wrapper-sm b-a bg-white m-r-xs m-b-xs">
        <div class="bg-light" style="height:320px">
          <img-crop 
            image="myImage" 
            result-image="myCroppedImage"
            result-image-size="160"
            area-type="{{cropType}}"
          ></img-crop>
        </div>
      </div>
    </div>
    <div class="col-lg-4">
      <div class="inline bg-white wrapper-sm b-a">
        <div class="bg-light">
          <img ng-src="{{myCroppedImage}}" />
        </div>
      </div>
    </div>
  </div>
<div>
<div class="modal-footer">
    <button class="cancel-handler btn btn-link" ng-click="cancel()" >取消</button>
    <button class="confirm-handler btn btn-primary"  ng-click="ok()" >确定</button>
</div>